package com.ebrothers.isns.vo;

public class Question extends DataVo {

	private String body;
	private int type;
	private User owner;
	private Location triggerLocation;
	private String datetime;
	private int answerCount;

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public User getOwner() {
		if (owner == null) {
			owner = new User();
		}
		return owner;
	}

	public void setOwner(User owner) {
		this.owner = owner;
	}

	public Location getTriggerLocation() {
		if (triggerLocation == null) {
			triggerLocation = new Location();
		}
		return triggerLocation;
	}

	public void setTriggerLocation(Location triggerLocation) {
		this.triggerLocation = triggerLocation;
	}

	public String getDatetime() {
		return datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	public void setAnswerCount(int answerCount) {
		this.answerCount = answerCount;
	}

	public int getAnswerCount() {
		return answerCount;
	}

}
